<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template('member', 'header'); ?>
<script type="text/javascript" src="<?php echo JS_PATH;?>jquery.min.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>member_common.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>formvalidator.js" charset="UTF-8"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>formvalidatorregex.js" charset="UTF-8"></script>
<div id="memberArea">
<?php include template('member', 'left'); ?>
    <div class="col-auto">
	<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"announce\" data=\"op=announce&tag_md5=135f3f60241cbf851ab60e17d53ceb16&action=lists&num=1&siteid=%24memberinfo%5Bsiteid%5D&cache=3600\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$tag_cache_name = md5(implode('&',array('siteid'=>$memberinfo[siteid],)).'135f3f60241cbf851ab60e17d53ceb16');if(!$data = tpl_cache($tag_cache_name,3600)){$announce_tag = pc_base::load_app_class("announce_tag", "announce");if (method_exists($announce_tag, 'lists')) {$data = $announce_tag->lists(array('siteid'=>$memberinfo[siteid],'limit'=>'1',));}if(!empty($data)){setcache($tag_cache_name, $data, 'tpl_data');}}?>
		<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
		<?php $announceid = $r[aid];?>
    	<div class="point" id='announcement' style="display:none">
        	<a href="javascript:hide_element('announcement');setcookie('announcement_<?php echo $memberinfo['userid'];?>_<?php echo $r['aid'];?>', 1);" hidefocus="true" class="close"><span><?php echo L('close');?></span></a>
            <div class="content">
					<strong class="title"><?php echo $r['title'];?></strong>
					<p><?php echo $r['content'];?></p>
            </div>
            <span class="o1"></span><span class="o2"></span><span class="o3"></span><span class="o4"></span>
        </div>
		<?php $n++;}unset($n); ?>
	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
    	<div class="col-auto">
        <div class="bk10"></div>

            <div class="col-1 ">
            	<h5 class="title"><?php echo L('package');?></h5>
            	<div class="content">
					<div style="width: 100%;">
						<p style="font-size: 14px; color: #333333; line-height: inherit;"><?php echo L('readpacjk_desc');?></p>
			       </div>
					<div style="width: 100%;">
						<table width="100%" height="30" border="0" align="center"
							cellpadding="0" cellspacing="0" class="dixian">
							<tr>
								<td height="50" align="left"><p
										style="font-size: 16px; color: #000065; font-weight: bold; line-height: inherit; font-style: italic;">Please
										choose subscription period/如需购买，请选择订购期限：</p>
									<?php if($infos ) { ?>
									<p
										style="font-size: 12px; color: #FF6600; line-height: inherit;">上次购买时间：<?php echo date("Y-m-d",$starttime);?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前到期时间：<?php echo date("Y-m-d", $endtime);?></p>
										<?php } ?>
										</td>
							</tr>
						</table>
						<form method="post" action="index.php?m=pay&c=deposit&a=pay" id="myform">
						<table width="467" border="0" align="center" cellpadding="0"
							cellspacing="0" class="zit02">
							<tr>
								<td width="415" height="38" align="left">One
									year:RMB190(US$31)/一年：190元人民币（31美元）</td>
								<td width="52" align="left"><label> <input
										type="radio" name="radiobutton"  id="radiobutton2" value="<?php echo pc_base::load_config('readpack','1')?>" />
								</label></td>
							</tr>
							<tr>
								<td height="38" align="left">Two
									year:RMB290(US$47)/二年：290元人民币（47美元）</td>
								<td align="left"><label> <input type="radio"
										name="radiobutton"  id="radiobutton" value="<?php echo pc_base::load_config('readpack','2')?>" />
								</label></td>
							</tr>
							<tr>
							   <td colspan="2"  align="left"><div id="radiobuttonTip" style="width:250px"></div></td>
							</tr>
							<tr>
								<td height="56" colspan="2" align="center">
								<input type="submit" name="dosubmit" value="" class="buttj" />
								</td>
							</tr>
						</table>
						</from>
					</div>
				</div>
            	<span class="o1"></span><span class="o2"></span><span class="o3"></span><span class="o4"></span>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<script type="text/javascript" src="<?php echo JS_PATH;?>cookie.js"></script>
<script language="JavaScript">
<!--
$(document).ready(function() {
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$(":radio[name='radiobutton']").formValidator({tipid:"radiobuttonTip",onshow:"请选择你的阅读套餐",onfocus:"没有第三种阅读套餐！！！",oncorrect:"输入正确",defaultvalue:["1"]}).inputValidator({min:1,max:1,onerror:"阅读套餐,请确认"});//.defaultPassed();
	var announcement = getcookie('announcement_<?php echo $memberinfo['userid'];?>_<?php echo $announceid;?>');
	if(announcement==null || announcement=='') {
		$("#announcement").fadeIn("slow");
	}
});
//-->
</script>
<?php include template('member', 'footer'); ?>